import { S } from '../../s';
import { IPSControl } from '../ipscontrol';
import { IPSDBHtmlPortletPart } from './ipsdbhtml-portlet-part';
import { PSDBSysPortletPartImpl } from './psdbsys-portlet-part-impl';

export class PSDBHtmlPortletPartImpl
  extends PSDBSysPortletPartImpl
  implements IPSDBHtmlPortletPart
{
  protected contentpscontrol: IPSControl;
  getContentPSControl(): IPSControl | null {
    return (
      this.contentpscontrol ||
      (this.contentpscontrol = this.fillObjectModel(
        S._214,
        this.M.getContentPSControl,
        S._33c,
      ) as IPSControl)
    );
  }

  get htmlShowMode(): 'INNER' | 'IFRAME' {
    return this.M.htmlShowMode;
  }

  get pageUrl(): string {
    return this.M.pageUrl;
  }
  get cls(): string {
    return 'PSDBHtmlPortletPartImpl';
  }
  instanceof(cls: string): boolean {
    if (cls == S._22c) return true;
    return super.instanceof(cls);
  }
}
